import {createApp} from 'vue'
import Vuex from 'vuex'
import App from "../App";

createApp(App).use(Vuex)

export default new Vuex.Store({
    state: {
        routes: []
    },
    //同步 方法
    mutations: {
        initRoures(state, data) {
            state.routes = data;
        }
    },
    //异步 方法
    actions: {}

})